@extends('company.company')

@section('title','企业中心')
@section('rightcontainer')
<link href="{{asset('/css/star-rating.css')}}" media="all" rel="stylesheet" type="text/css"/>
<script src="{{asset('/js/star-rating.js')}}" type="text/javascript"></script>
<div class="col-xs-10 font-16" style="padding-right: 0;">
    <div class="backgr-color-white bord-1 padd-l-10 padd-t-10">
        <div class="tab-row bord-b font-16">
            <ul>
                <li><strong>相关职位</strong></li>
                <li><strong>用户昵称</strong></li>
                <li style="width: 18%;overflow:hidden"><strong>评论内容</strong></li>
                <li style="width: 15%"><strong>考试信用</strong></li>
                <li style="width: 15%"><strong>面试信用</strong></li>
                <li style="width: 10%"><strong>时间</strong></li>
            </ul>
        </div>

        @foreach ($comments as $cts)
            <div class="tab-row">
                <ul>
                    <li>{{ count($cts->resume)>0?(count($cts->resume->jobs)>0?$cts->resume->jobs->title:'无'):'无' }}</li>
                    <li>{{ $cts->user->name }}</li>
                    <li style="width: 18%;overflow:hidden">{{ str_limit(strip_tags($cts->content), 20, '...') }}</li>
                    <li class="small-xwei-rating" style="width: 15%">
                        <input value="{{$cts->level}}" readonly type="number" class="rating"  min=0 max=5 step=0.2 data-size="sm">
                    </li>
                    <li class="small-xwei-rating" style="width: 15%">
                        <input value="{{$cts->exam_level}}" readonly type="number" class="rating"  min=0 max=5 step=0.2 data-size="sm">
                    </li>
                    <li style="width:10%;">
                       {{date("Y-m-d",strtotime($cts->created_at))}}
                    </li>
                </ul>
            </div>
        @endforeach
    </div>
</div>
@stop

{{--底部导航--}}
@section('footer')
@parent
@stop

